package com.mars.ticket.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mars.ticket.entity.TicketOrder;
import com.mars.ticket.request.TicketOrderRequest;
import com.mars.ticket.response.TicketOrderResponse;
import com.mars.ticket.response.base.PageInfo;

import java.util.List;

/**
 * TicketOrder 接口
 *
 * @Author wq
 * @Date 2021-04-22
 **/
public interface ITicketOrderService extends IService<TicketOrder> {

    void createOrder(Integer userId, Integer ticketId,String username, String idCard);


    PageInfo<TicketOrderResponse> list(TicketOrderRequest request);


    List<TicketOrderResponse> orderList(Integer userId);


    void delete(String orderId);

}
